package com.woniuxy.autowire;

import com.woniuxy.Person;

public class Man implements Person {
    String name;
    Food food;


    public void setFood1(Food food) {
        this.food = food;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Override
    public void play() {
        System.out.println("吃东西");
    }
    @Override
    public String toString() {
        return "Man{" +
                "name='" + name + '\'' +
                ", food=" + food +
                '}';
    }
}
